<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="keywords" content="GCMS" />
<meta name="description" content="GCMS" />
<meta name="robots" content="noindex, nofollow" />
<link rel="stylesheet" type="text/css" href="../system/application/views/style.css" media="screen" />
<link rel="stylesheet" type="text/css" href="../system/application/views/content.css" media="screen" />

<link rel="stylesheet" type="text/css" href="../system/livevalidation/livevalidation.css" media="screen" />
<script src="../system/livevalidation/livevalidation.js" type="text/javascript"></script>

<style type="text/css">
<!--
body {
	margin:0;
}
#top {
	margin-bottom:20px;
}
.LV_valid {
    color:#C3C3BA;
} 
.LV_valid_field,
input.LV_valid_field:hover, 
input.LV_valid_field:active,
textarea.LV_valid_field:hover, 
textarea.LV_valid_field:active {
    border: 1px solid #C3C3BA;
}
-->
</style>
<title>GCMS >> Installation >> Step 1</title>
</head>
<body>
	
<div id="top">
	<div style="padding-left:20px;">GCMS &gt;&gt; Installation &gt;&gt; Step 1</div>
</div>
<div style="margin:0 auto;width:700px;">
<h1>GCMS Installation &gt;&gt; Step 1</h1>
<br />
<form action="install2.php" method="post">
<table width="100%">
<tr><td colspan="2"><h2>Url Settings</h2></td></tr>
<tr><td>Base Url</td><td><input type="text" id="url" name="url" value="http://<?=$_SERVER['SERVER_NAME'];?>/" maxlength="500" size="50" /></td></tr>
<tr><td colspan="2"><h2>Database Settings</h2></td></tr>
<tr><td>Hostname</td><td><input type="text" id="host" name="host" value="localhost" maxlength="500" size="50" /></td></tr>
<tr><td>Database Name</td><td><input type="text" id="dbname" name="dbname" value="" maxlength="500" size="50" /></td></tr>
<tr><td>Username</td><td><input type="text" id="dbusername" name="dbusername" value="" maxlength="500" size="50" /></td></tr>
<tr><td>Password</td><td><input type="password" id="dbpassword" name="dbpassword" value="" maxlength="500" size="50" /></td></tr>
<tr><td></td><td><input type="submit" value="Submit" onclick="return validate();" /></td></tr>
</table>
</form>

<script type="text/javascript">
var url = new LiveValidation('url');
url.add( Validate.Presence );
var host = new LiveValidation('host');
host.add( Validate.Presence );
var dbname = new LiveValidation('dbname');
dbname.add( Validate.Presence );
var dbusername = new LiveValidation('dbusername');
dbusername.add( Validate.Presence );
var dbpassword = new LiveValidation('dbpassword');
dbpassword.add( Validate.Presence );

function validate(){
	return LiveValidation.massValidate( [ url, host, dbname, dbusername, dbpassword ] )
}
</script>
</div>

</body>
</html>